package com.cqc.jdk8.Jlang.thread;


public class FThread extends Thread {

    private final String threadName;

    public FThread(String threadName) {
        this.threadName = threadName;
    }

    @Override
    public void run() {
        for (int i = 0; i < 4; i++) {
            Thread.yield();
            System.out.println("threadName:" + threadName);
        }
    }
}